package com.sunfeng.n4.singleton;

public class SingletonOne {

    private SingletonOne() {

    }

    private static SingletonOne INSTANCE = null;

    public static synchronized SingletonOne getInstance() {
        if (INSTANCE != null) {
            return INSTANCE;
        }
        INSTANCE = new SingletonOne();
        return INSTANCE;
    }
}
